<?php
@session_start();
if (!isset($_SESSION['user'])):

//functions
	function checkVar($var) {
		$var = str_replace("\n", " ", $var);
		$var = str_replace(" ", "", $var);
		if (isset($var) && !empty($var) && $var != '') {
			return true;
		} else {
			return false;
		}
	}
	?>
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<link rel="shortcut icon" href="./img/favicon.ico" />
			<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
			<title>Wormhole (link the wits, Alpha Version)</title>
			<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
			<script type="text/javascript" src="js/jquery-ui-1.8.13.custom.min.js"></script>
			<script type="text/javascript" src="js/common.js"></script>
			<script type="text/javascript" src="js/login.js"></script> 
			<link rel="stylesheet" media="screen" href="css/jquery-ui-1.8.13.custom.css"/> 
			<link rel="stylesheet" type="text/css" media="screen" href="css/login.css" />
		</head>

		<body class="loginv2">
			<div id="loginv2-page">
				<div id="loginv2-container">
					<div id="loginv2-main">
						<div id="loginv2-news-outer">
							<div class="loginv2-news-arrow-container">
								<div class="loginv2-news-arrow" isleft="true"></div>
							</div>
							<div id="loginv2-news-view">
								<ul id="loginv2-news-container">
									<li id="loginv2-news-page0" newsid="0" class="login2-news-window">
									</li>
									<li id="loginv2-news-page1" newsid="1" class="login2-news-window">
									</li>
									<li id="loginv2-news-page2" newsid="2" class="login2-news-window">
										</li>
								</ul>
							</div>
							<div class="loginv2-news-arrow-container">
								<div class="loginv2-news-arrow" isleft="false"></div>
							</div>
						</div>
						<div id="loginv2-login-container">
							<div id="loginv2-login-container-center">
								<div id="loginv2-login-inputs">
									<div id="loginv2-input-welcome">
										<p>WELCOME TO<br/>WORMHOLE</p>
									</div>
									<form method="post" id="login-form" action="ajax.php?action=login">
										<div id="loginv2-input-boxes">
											<input id="login-name" class="loginv2-input" type="text" name="login-name" />
											<input id="login-password" class="loginv2-input" type="password" name="login-psw" />
											<div id="loginv2-input-error">

												<div id="loginv2-input-error-tip"><p>Please check your username & password!</p></div>
												<div id="loginv2-input-error-arrow"></div>
											</div>
										</div>
									</form>
								</div>
								<div id="loginv2-login-buttons">
									<div id="loginv2-login-login" class="login-button">
										<div class="loginv2-login-button-text-capital">
											S
										</div>
										<div class="loginv2-login-button-text-normal">
											Sign In
										</div>
									</div>
									<div id="loginv2-login-forget" class="login-button">
										<div class="loginv2-login-button-text-capital">
											F
										</div>
										<div class="loginv2-login-button-text-normal">
											Forget your password?
										</div>
									</div>
									<div id="loginv2-login-register" class="login-button">
										<div class="loginv2-login-button-text-capital">
											C
										</div>
										<div class="loginv2-login-button-text-normal">
											Create an account now!
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div id="register-form" title="Create your Wormhole account">
				<p class="validateTips">* All form fields are required.</p>
				<form id="reg_form_submit" method="post">
					<fieldset id="reg_form_shadow">
						<input type="text" id="reg_username_s" class="reg_input_s text ui-corner-all" />
						<input type="text" id="reg_password_s" class="reg_input_s text ui-corner-all" />
						<input type="text" id="reg_email_s" class="reg_input_s text ui-corner-all" />
						<input type="text" id="reg_invite_s" class="reg_input_s text ui-corner-all" />
					</fieldset>
					<fieldset id="reg_form">
						<input type="text" autocomplete="off" name="reg_username" id="reg_username" maxlength="30" class="reg_input text ui-corner-all" />
						<input type="password" autocomplete="off" name="reg_password" id="reg_password" maxlength="30" class="reg_input text ui-corner-all" />
						<input type="text" autocomplete="off" name="reg_email" id="reg_email" maxlength="30" class="reg_input text ui-corner-all" />
						<input type="text" autocomplete="off" name="reg_invite" id="reg_invite" maxlength="32" class="reg_input text ui-corner-all" />
						<!-- >
						<div id="reg_gender_set" >
							<div value="female" class="reg_gender rounded first" current="false">Female</div>
							<div value="male" class="reg_gender rounded" current="false">Male</div>
							<div value="x" class="reg_gender rounded" current="false">Neither</div>
						</div>
						<-->
					</fieldset>
				</form>
				<div id="register-form-agreements" class="rounded">
					<a>By clicking "Create" button, you agree to the terms below: </a><br /><br />
This agreement was written in English (US). To the extent any translated version of this agreement conflicts with the English version, the English version controls.  <br>
Date of Last Revision: Oct 11, 2011.<br>
<br>
<h2>Statement of Rights and Responsibilities</h2><br>
<br>
This Statement of Rights and Responsibilities (Statement) derives from the Wormhole Principles, and governs our relationship with users and others who interact with Wormhole. By using or accessing Wormhole, you agree to this Statement.<br>
<ol><h3>1.	Privacy</h3><br>
<br>
Your privacy is very important to us. We designed our Privacy Policy to make important disclosures about how you can use Wormhole to share with others and how we collect and can use your content and information.  We encourage you to read the Privacy Policy, and to use it to help make informed decisions.<br>
 <br>
<h3>2.	Sharing Your Content and Information</h3><ol><br>
You own all of the content and information you post on Wormhole, and you can control how it is shared through your privacy and application settings. In addition:<br>
1.	For content that is covered by intellectual property rights, like photos and videos (IP content), you specifically give us the following permission, subject to your privacy and application settings: you grant us a non-exclusive, transferable, sub-licensable, royalty-free, worldwide license to use any IP content that you post on or in connection with Wormhole (IP License). This IP License ends when you delete your IP content or your account unless your content has been shared with others, and they have not deleted it.<br>
2.	When you delete IP content, it is deleted in a manner similar to emptying the recycle bin on a computer. However, you understand that removed content may persist in backup copies for a reasonable period of time (but will not be available to others).<br>
3.	When you use an application, your content and information is shared with the application.  We require applications to respect your privacy, and your agreement with that application will control how the application can use, store, and transfer that content and information.  (To learn more about Platform, read our Privacy Policy and Platform Page.)<br>
4.	When you publish content or information using the Public setting, it means that you are allowing everyone, including people off of Wormhole, to access and use that information, and to associate it with you (i.e., your name and profile).<br>
5.	We always appreciate your feedback or other suggestions about Wormhole, but you understand that we may use them without any obligation to compensate you for them (just as you have no obligation to offer them).<br>
</ol><br>
<h3>3.	Safety</h3><ol><br>
We do our best to keep Wormhole safe, but we cannot guarantee it. We need your help to do that, which includes the following commitments:<br>
1.	You will not send or otherwise post unauthorized commercial communications (such as spam) on Wormhole.<br>
2.	You will not collect users' content or information, or otherwise access Wormhole, using automated means (such as harvesting bots, robots, spiders, or scrapers) without our permission.<br>
3.	You will not engage in unlawful multi-level marketing, such as a pyramid scheme, on Wormhole.<br>
4.	You will not upload viruses or other malicious code.<br>
5.	You will not solicit login information or access an account belonging to someone else.<br>
6.	You will not bully, intimidate, or harass any user.<br>
7.	You will not post content that: is hateful, threatening, or pornographic; incites violence; or contains nudity or graphic or gratuitous violence.<br>
8.	You will not develop or operate a third-party application containing alcohol-related or other mature content (including advertisements) without appropriate age-based restrictions.<br>
9.	You will follow our Promotions Guidelines and all applicable laws if you publicize or offer any contest, giveaway, or sweepstakes ("promotion") on Wormhole.<br>
10.	You will not use Wormhole to do anything unlawful, misleading, malicious, or discriminatory.<br>
11.	You will not do anything that could disable, overburden, or impair the proper working of Wormhole, such as a denial of service attack.<br>
12.	You will not facilitate or encourage any violations of this Statement.<br>
</ol><br>
<h3>4.	Registration and Account Security</h3><br>
<br>
Wormhole users provide their real names and information, and we need your help to keep it that way. Here are some commitments you make to us relating to registering and maintaining the security of your account:<br>
<ol><br>
1.	You will not provide any false personal information on Wormhole, or create an account for anyone other than yourself without permission.<br>
2.	You will not create more than one personal profile.<br>
3.	If we disable your account, you will not create another one without our permission.<br>
4.	You will not use your personal profile for your own commercial gain (such as selling your status update to an advertiser).<br>
5.	You will not use Wormhole if you are under 13.<br>
6.	You will not use Wormhole if you are a convicted sex offender.<br>
7.	You will keep your contact information accurate and up-to-date.<br>
8.	You will not share your password, (or in the case of developers, your secret key), let anyone else access your account, or do anything else that might jeopardize the security of your account.<br>
9.	You will not transfer your account (including any page or application you administer) to anyone without first getting our written permission.<br>
10.	If you select a username for your account we reserve the right to remove or reclaim it if we believe appropriate (such as when a trademark owner complains about a username that does not closely relate to a user's actual name).</ol> <br>
<br>
<h3>5.	Protecting Other People's Rights</h3><br>
<br>
We respect other people's rights, and expect you to do the same.<br>
<ol>1.	You will not post content or take any action on Wormhole that infringes or violates someone else's rights or otherwise violates the law.<br>
2.	We can remove any content or information you post on Wormhole if we believe that it violates this Statement.<br>
3.	We will provide you with tools to help you protect your intellectual property rights. <br>
4.	If we remove your content for infringing someone else's copyright, and you believe we removed it by mistake, we will provide you with an opportunity to appeal.<br>
5.	If you repeatedly infringe other people's intellectual property rights, we will disable your account when appropriate.<br>
6.	You will not use our copyrights or trademarks (including Wormhole, the Wormhole and F Logos, FB, Face, Poke, Wall and 32665), or any confusingly similar marks, without our written permission.<br>
7.	If you collect information from users, you will: obtain their consent, make it clear you (and not Wormhole) are the one collecting their information, and post a privacy policy explaining what information you collect and how you will use it.<br>
8.	You will not post anyone's identification documents or sensitive financial information on Wormhole.<br>
9.	You will not tag users or send email invitations to non-users without their consent.</ol> <br>
<br>
<h3>6.	Mobile</h3><br>
<ol>1.	We currently provide our mobile services for free, but please be aware that your carrier's normal rates and fees, such as text messaging fees, will still apply.<br>
2.	In the event you change or deactivate your mobile telephone number, you will update your account information on Wormhole within 48 hours to ensure that your messages are not sent to the person who acquires your old number.<br>
3.	You provide all rights necessary to enable users to sync (including through an application) their contact lists with any basic information and contact information that is visible to them on Wormhole, as well as your name and profile picture.<br>
</ol> <br>
<h3>7.	Payments and Deals</h3><br>
<ol>1.	If you make a payment on Wormhole or use Wormhole Credits, you agree to our Payments Terms.<br>
2.	If purchase a Deal, you agree to our Deals Terms.<br>
3.	If you provide a Deal or partner with us to provide a Deal, you agree to the Merchant Deal Terms in addition to any other agreements you may have with us.</ol><br>
<br>
 <br>
<h3>8.	About Advertisements and Other Commercial Content Served or Enhanced by Wormhole</h3><br>
<br>
Our goal is to deliver ads that are not only valuable to advertisers, but also valuable to you. In order to do that, you agree to the following:<br>
<ol>1.	You can use your privacy settings to limit how your name and profile picture may be associated with commercial, sponsored, or related content (such as a brand you like) served or enhanced by us. You give us permission to use your name and profile picture in connection with that content, subject to the limits you place.<br>
2.	We do not give your content or information to advertisers without your consent.<br>
3.	You understand that we may not always identify paid services and communications as such.</ol><br>
 <br>
<h3>9.	Special Provisions Applicable to Advertisers</h3><br>
<br>
You can target your specific audience by buying ads on Wormhole or our publisher network. The following additional terms apply to you if you place an order through our online advertising portal (Order):<br>
<ol>1.	When you place an Order, you will tell us the type of advertising you want to buy, the amount you want to spend, and your bid. If we accept your Order, we will deliver your ads as inventory becomes available. When serving your ad, we do our best to deliver the ads to the audience you specify, although we cannot guarantee in every instance that your ad will reach its intended target.<br>
2.	In instances where we believe doing so will enhance the effectiveness of your advertising campaign, we may broaden the targeting criteria you specify.<br>
3.	You will pay for your Orders in accordance with our Payments Terms. The amount you owe will be calculated based on our tracking mechanisms.<br>
4.	Your ads will comply with our Advertising Guidelines.<br>
5.	We will determine the size, placement, and positioning of your ads.<br>
6.	We do not guarantee the activity that your ads will receive, such as the number of clicks you will get.<br>
7.	We cannot control how people interact with your ads, and are not responsible for click fraud or other improper actions that affect the cost of running ads.  We do, however, have systems to detect and filter certain suspicious activity, learn more here.<br>
8.	You can cancel your Order at any time through our online portal, but it may take up to 24 hours before the ad stops running.  You are responsible for paying for those ads.<br>
9.	Our license to run your ad will end when we have completed your Order. You understand, however, that if users have interacted with your ad, your ad may remain until the users delete it.<br>
10.	We can use your ads and related content and information for marketing or promotional purposes.<br>
11.	You will not issue any press release or make public statements about your relationship with Wormhole without written permission.<br>
12.	We may reject or remove any ad for any reason.<br>
13.	If you are placing ads on someone else's behalf, we need to make sure you have permission to place those ads, including the following:<ol><br>
1.	You warrant that you have the legal authority to bind the advertiser to this Statement.<br>
2.	You agree that if the advertiser you represent violates this Statement, we may hold you responsible for that violation.</ol></ol><br>
 <br>
<h3>10.	Special Provisions Applicable to Pages</h3><br>
<br>
If you create or administer a Page on Wormhole, you agree to our Pages Terms.<br>
 <br>
<h3>11.	Amendments</h3><br>
<ol>1.	We can change this Statement if we provide you notice (by posting the change on the Wormhole Site Governance Page) and an opportunity to comment.  To get notice of any future changes to this Statement, visit our Wormhole Site Governance Page and become a fan.<br>
2.	For changes to sections 7, 8, 9, and 11 (sections relating to payments, application developers, website operators, and advertisers), we will give you a minimum of three days notice. For all other changes we will give you a minimum of seven days notice. All such comments must be made on the Wormhole Site Governance Page.<br>
3.	If more than 7,000 users comment on the proposed change, we will also give you the opportunity to participate in a vote in which you will be provided alternatives. The vote shall be binding on us if more than 30% of all active registered users as of the date of the notice vote.<br>
4.	We can make changes for legal or administrative reasons, or to correct an inaccurate statement, upon notice without opportunity to comment.<br>
 <br>
<h3>12.	Termination</h3><br>
<br>
If you violate the letter or spirit of this Statement, or otherwise create risk or possible legal exposure for us, we can stop providing all or part of Wormhole to you. We will notify you by email or at the next time you attempt to access your account. You may also delete your account or disable your application at any time. <br>
<br>
<h3>13.	Disputes</h3><br>
<ol>1.	You will resolve any claim, cause of action or dispute (claim) you have with us arising out of or relating to this Statement or Wormhole exclusively in a state or federal court located in Santa Clara County. The laws of the State of California will govern this Statement, as well as any claim that might arise between you and us, without regard to conflict of law provisions. You agree to submit to the personal jurisdiction of the courts located in Santa Clara County, California for the purpose of litigating all such claims.<br>
2.	If anyone brings a claim against us related to your actions, content or information on Wormhole, you will indemnify and hold us harmless from and against all damages, losses, and expenses of any kind (including reasonable legal fees and costs) related to such claim.<br>
3.	WE TRY TO KEEP WORMHOLE UP, BUG-FREE, AND SAFE, BUT YOU USE IT AT YOUR OWN RISK. WE ARE PROVIDING WORMHOLE AS IS WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. WE DO NOT GUARANTEE THAT WORMHOLE WILL BE SAFE OR SECURE. WORMHOLE IS NOT RESPONSIBLE FOR THE ACTIONS, CONTENT, INFORMATION, OR DATA OF THIRD PARTIES, AND YOU RELEASE US, OUR DIRECTORS, OFFICERS, EMPLOYEES, AND AGENTS FROM ANY CLAIMS AND DAMAGES, KNOWN AND UNKNOWN, ARISING OUT OF OR IN ANY WAY CONNECTED WITH ANY CLAIM YOU HAVE AGAINST ANY SUCH THIRD PARTIES. IF YOU ARE A CALIFORNIA RESIDENT, YOU WAIVE CALIFORNIA CIVIL CODE 1542, WHICH SAYS: A GENERAL RELEASE DOES NOT EXTEND TO CLAIMS WHICH THE CREDITOR DOES NOT KNOW OR SUSPECT TO EXIST IN HIS FAVOR AT THE TIME OF EXECUTING THE RELEASE, WHICH IF KNOWN BY HIM MUST HAVE MATERIALLY AFFECTED HIS SETTLEMENT WITH THE DEBTOR. WE WILL NOT BE LIABLE TO YOU FOR ANY LOST PROFITS OR OTHER CONSEQUENTIAL, SPECIAL, INDIRECT, OR INCIDENTAL DAMAGES ARISING OUT OF OR IN CONNECTION WITH THIS STATEMENT OR WORMHOLE, EVEN IF WE HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. OUR AGGREGATE LIABILITY ARISING OUT OF THIS STATEMENT OR WORMHOLE WILL NOT EXCEED THE GREATER OF ONE HUNDRED DOLLARS ($100) OR THE AMOUNT YOU HAVE PAID US IN THE PAST TWELVE MONTHS. APPLICABLE LAW MAY NOT ALLOW THE LIMITATION OR EXCLUSION OF LIABILITY OR INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THE ABOVE LIMITATION OR EXCLUSION MAY NOT APPLY TO YOU. IN SUCH CASES, WORMHOLE'S LIABILITY WILL BE LIMITED TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW.<br>
 <br>
<h3>14.	Definitions</h3><br>
<ol>1.	By Wormhole we mean the features and services we make available, including through (a) our website atwww.Wormhole.com and any other Wormhole branded or co-branded websites (including sub-domains, international versions, widgets, and mobile versions); (b) our Platform; (c) social plugins such as the like button, the share button and other similar offerings and (d) other media, software (such as a toolbar), devices, or networks now existing or later developed.<br>
2.	By Platform we mean a set of APIs and services that enable others, including application developers and website operators, to retrieve data from Wormhole or provide data to us.<br>
3.	By information we mean facts and other information about you, including actions you take.<br>
4.	By content we mean anything you post or chat on Wormhole that would not be included in the definition of information.<br>
5.	By data we mean content and information that third parties can retrieve from Wormhole or provide to Wormhole through Platform.<br>
6.	By post we mean post on Wormhole or otherwise make available to us (such as by using an application and chatting with other users).<br>
7.	By use we mean use, copy, publicly perform or display, distribute, modify, translate, and create derivative works of.<br>
8.	By active registered user we mean a user who has logged into Wormhole at least once in the previous 30 days.<br>
9.	By application we mean any application or website that uses or accesses Platform, as well as anything else that receives or has received data from us.  If you no longer access Platform but have not deleted all data from us, the term application will apply until you delete the data.</ol><br>
 <br>
<h3>15.	Other</h3><br>
<ol>1.	This Statement is an agreement between you and Wormhole Ireland Limited.  References to "us," "we," and "our" mean either Wormhole, Inc. or Wormhole Ireland Limited, as appropriate.<br>
2.	This Statement makes up the entire agreement between the parties regarding Wormhole, and supersedes any prior agreements.<br>
3.	If any portion of this Statement is found to be unenforceable, the remaining portion will remain in full force and effect.<br>
4.	If we fail to enforce any of this Statement, it will not be considered a waiver.<br>
5.	Any amendment to or waiver of this Statement must be made in writing and signed by us.<br>
6.	You will not transfer any of your rights or obligations under this Statement to anyone else without our consent.<br>
7.	All of our rights and obligations under this Statement are freely assignable by us in connection with a merger, acquisition, or sale of assets, or by operation of law or otherwise.<br>
8.	Nothing in this Statement shall prevent us from complying with the law.<br>
9.	This Statement does not confer any third party beneficiary rights.<br>
10.	You will comply with all applicable laws when using or accessing Wormhole.</ol><br>
</ol></ol>
</ol>
				</div>
			</div>
			<div id="waiting-dialog" title="Please wait"><p>Wormhole is processing your query...You may get your account in a few seconds.</p>
				<img src="img/wait.gif"></img>
			</div>
			<div id="reg-succ-dialog" title="Congratulations!"><p>Your account has been created successfully!</p></div>
		</body>
	</html>
	<?php
else:
	require_once("index.php");
endif;
?>